package com.aaa;

import com.aaa.impl.IUserService;
import com.aaa.impl.OrderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 荆豪峰
 * @version 1.0
 */
public class Test {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext text = new ClassPathXmlApplicationContext("spring.xml");

        IUserService bean = text.getBean(IUserService.class);
        bean.save();

        OrderService orderService = text.getBean(OrderService.class);
        orderService.save();
    }
}
